/*******************************************************************************
 * Package: com.hngtrust.etl.job.controller.vo
 * Type:    DemoReqVO
 * Date:    2020-11-18 14:24
 *
 * Copyright (c) 2020 HUANENG GUICHENG TRUST CORP.,LTD All Rights Reserved.
 *
 * You may not use this file except in compliance with the License.
 *******************************************************************************/
package com.hngtrust.iir.user.controller.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;

/**
 * 用户新增和编辑请求
 * @author Chentianyong
 * @date 2020-11-18 14:24
 */
@ApiModel(description = "用户新增和编辑请求")
@Data
public class EditUserReqVO {
    /**
     * id
     */
    @ApiModelProperty(value = "用户ID，修改时必填", dataType = "Long")
    private Long id;
    /**
     * 用户姓名
     */
    @Length(max = 60)
    @ApiModelProperty(value = "用户姓名", dataType = "String")
    private String name;
    /**
     * 用户登录号
     */
    @Length(max = 60)
    @ApiModelProperty(value = "用户登录号", dataType = "String")
    private String userCode;
    /**
     * 手机
     */
    @ApiModelProperty(value = "手机", dataType = "String")
    private String mobilePhone;
    /**
     * EMAIL
     */
    @Email(message = "邮箱格式不正确")
    @ApiModelProperty(value = "EMAIL", dataType = "String")
    private String email;
    /**
     * 微信
     */
    @ApiModelProperty(value = "微信", dataType = "String")
    private String wechat;
    /**
     * 隶属部门_id
     */
    @ApiModelProperty(value = "隶属部门ID", dataType = "Long")
    private Long deptId;
    /**
     * 角色_id
     */
    @ApiModelProperty(value = "角色id", dataType = "String")
    private Long roleId;
    /**
     * 职务
     */
    @ApiModelProperty(value = "职务", dataType = "String")
    private String duty;
    /**
     * 密码
     */
    @ApiModelProperty(value = "密码", dataType = "String")
    private String password;
    /**
     * 状态
     */
    @ApiModelProperty(value = "状态", dataType = "Integer")
    private Integer status;
    
}
